extends ../../layout/layout

block content
  .content-wrapper
    .search-condition
      form#form-search
        .form-inline
          .form-group
            label.marginR10 城&emsp;市&emsp;
              select.form-control.form-width100(name="cityId")
          .form-group
            label.marginR10 状&emsp;态&emsp;
              select.form-control.form-width100(name="state")
                option(value="") 请选择
                option(value="1") 启用
                option(value="2") 停用
          .form-group
            label.marginR10 企业名称
              input.form-control.form-width150(name="serviceName" placeholder="请输入企业姓名")
          .form-group
            label.marginR10 企业编号
              input.form-control.form-width150(name="serviceNo" placeholder="请输入编号")
          .form-group
            label.marginR10 录入时间
              input.form-control.form-width150#createTime(name="createTime" readonly placeholder="年-月-日")
        .form-inline.marginT10
          .form-group
            label.marginR10 管理员&emsp;
              input.form-control.form-width100(name="managerName" placeholder="请输入姓名")
          .form-group
            label.marginR10 管理电话
              input.form-control.form-width100(name="managerPhone" placeholder="请输入电话号码")

          .form-group
            button.pull-right.btn.btn-default#btn-search(type="button")
              i.fa.fa-search
              span 查询
    .com-op.marginT10
      button.btn.btn-default.marginR10#btn-edit(type="button")
        //- i.fa.fa-edit
        span 修改
      button.btn.btn-default.marginR10#btn-stop(type="button")
        //- i.fa.fa-trash
        span 停用
      button.btn.btn-default.marginR10#btn-active(type="button")
        //- i.fa.fa-cog
        span 启用
      //- button.btn.btn-default.marginR10#btn-vieworder(type="button")
        //- i.fa.fa-?
        span 导出
      //- button.btn.btn-default.marginR10(type="button")
        //- i.fa.fa-?
        span 导入
      button.btn.btn-default.marginR10#btn-add(type="button")
        i.fa.fa-plus
        span 新增
      //- button.btn.btn-default.marginR10(type="button")
        //- i.fa.fa-?
        span 操作记录

    .content-body.marginT10#table-box
      table.table#table-hr
      #pager-hr

block vendor_css
  link(rel='stylesheet', type="text/css", href="../../vendor/jqGrid/css/ui.jqgrid-bootstrap.css")

block vendor_js
  script(src="../../vendor/jqGrid/js/jquery.jqGrid.js")
  script(src="../../vendor/jqGrid/js/i18n/grid.locale-cn.js")
  script(src="../../vendor/laydate/laydate.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.min.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.extend.js")

block self_js
  script(src="../../js/module/driver/hr-company.js")

block self_css
  //- link(rel="stylesheet", href="../../css/driver/list.css")

block layer
  //- 新增与修改
  .layer-box#layer-hr-op
    form.mw1200.padding20#form-hr-op(name="form-hr-add", autocomplete="off")
      +hrForm
    .text-center.marginB10
      button.btn.btn-primary.marginR10#btn-save(type="button")
        i.fa.fa-save
        span 保存

  //- 查看
  .layer-box#layer-hr-view
    form.mw1200.padding20#form-hr-view(name="form-hr-view", autocomplete="off")
      +hrForm

//- 表单
mixin hrForm
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 城市：
      .form-container
        select.form-control(name="cityId" disabled)
    .col-xs-4
      .form-text 名称：
      .form-container
        input.form-control(name="serviceName" disabled)
        input(type="hidden" name="kid")
        input(type="hidden" name="state" value="0")
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 公司编码：
      .form-container
        input.form-control(name="serviceNo", disabled)
    .col-xs-4
      .form-text 公司成立时间：
      .form-container
        input.form-control#form-createDate(name="createDate", disabled)
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 紧急联系电话：
      .form-container
        input.form-control(name="contactPhone", disabled)

    //- .col-xs-4
      .form-text 营业执照：
      .form-container
        input.form-control.hide(type="file" name="hrLpic" disabled)
        input(type="hidden" name="licenseImg")
        //- img#img-hr(alt="",src="",width="150",height="150")
        button.btn.btn-default.marginR10(type="button" disabled)
          i.fa.fa-upload
          span 上传
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 管理员：
      .form-container
        input.form-control(name="managerName",disabled)
    .col-xs-4
      .form-text 管理员电话：
      .form-container
        input.form-control(name="managerPhone",disabled)
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 负责人：
      .form-container
        input.form-control(name="responsibleName",disabled)
    .col-xs-4
      .form-text 负责人电话：
      .form-container
        input.form-control(name="responsiblePhone",disabled)

  .row.form-row.form-row-sm
    .col-xs-12
      .form-text 公司地址：
      .form-container.form-inline
        //- select.form-control.form-width100.marginR10(name="prov" disabled)
        //-   option(value="") 省
        //- select.form-control.form-width100.marginR10(name="city" disabled)
        //-   option(value="") 市
        //- select.form-control.form-width100.marginR10(name="county" disabled)
        //-   option(value="") 区/县
        input.form-control.form-width400(name="detailAddress" disabled)
  .row.form-row.form-row-sm
    .col-xs-12
      .form-text 行政文书送达地址：
      .form-container
        input.form-control.form-width400(name="mailAddress" disabled)
  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 提供司机等级：
      .form-container
        select.form-control(name="driverLevelId",disabled)
    .col-xs-4
      .form-text 提成：
      .form-container.form-inline
        input.form-control.form-width100.marginR10(name="commission",disabled, placeholder="请输入提成")
        span 元/人
    //-.col-xs-4
      .form-inline
        button.btn.btn-default.marginR10(type="button")
          //- i.fa.fa-?
          span 删除
        button.btn.btn-default.marginR10(type="button")
          //- i.fa.fa-?
          span 添加

  .row.form-row.form-row-sm
    .col-xs-4
      .form-text 状态：
      .form-container
        label.marginR10
          input(type="radio", name="status", value="101" disabled)
          span &ensp;启用
        label
          input(type="radio", name="status", value="102" disabled)
          span &ensp;停用
  .row.form-row.form-row-sm
    .col-xs-8
      .form-text 备注：
      .form-container
        textarea.form-control(name="remark" placeholder="请输入备注信息" disabled)
